import {
	https
} from './request.js'

// // 获取天气and地理位置
// export const getWeather = (params) => https({
// 	url: '/weather?query',
// 	data: params
// })

// 获取首页数据
export const getIndexList = () => https({
	url: '/frontpage'
})

// 获取新冠疫苗
export const getVaccine = () => https({
	url: '/newapptime'
})

// 获取父科室
export const getDepartment = () => https({
	url: '/department'
})

// 获取子科室
export const getReglist = (params) => https({
	url: '/reglist?query',
	data: params
})

// 新冠疫苗提交预约    
export const addVaccineMake = (params) => https({
	url: '/rescovid',
	method: 'post',
	data: params
})

// 获取医生日期
export const getTimesele = (params)=>https({
	url:'/alldlist?query',
	data:params
})

// 获取医生日期
export const getDate = (params) =>https({
	url:"/timesele?query=",
	data:params
})

// 根据时间筛选医生
export const timeEvery = (params) =>https({
	url:'/everydlist?query=',
	data:params
})

// 新增就诊人 / patient_res
export const addPatient = (params)=>https({
	url:'/patient_res',
	data:params,
	method:'post'
})

// 获取就诊人信息
export const getPatient = ()=>https({
	url:'/get_patient'
})